Skip to main content

Hide Window

AutomatR.Windows.Activities.HideWindow

The "Hide Window" activity in AutomatR for Windows UI Automation hides a specified window identified by its process name, process title, or display title. This activity is useful for minimizing or hiding unwanted windows during automation workflows.

Properties

NameDescription
Input
Process NameSpecifies the name of the process whose window needs to be hidden. Provide the exact process name for identification. If not provided, use either "Process Title" or "Display Title."
Process TitleSpecifies the title of the process window to be hidden. Use this property if the process window can be identified by its title. If not provided, use either "Process Name" or "Display Title."
Display TitleSpecifies the display title of the window to be hidden. This can be an alternative title used for window identification. If not provided, use either "Process Name" or "Process Title."
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before starting the activity. This can be useful for handling synchronization issues. Default is 0 seconds.

How to use:

  1. Drag and drop the "Hide Window" activity onto the workflow.
  2. Configure the properties by specifying the process name, process title, or display title of the window to be hidden.
  3. Optionally, set the entry delay to allow time before the window is hidden.
  4. Execute the workflow to hide the specified window.

Example: Consider an example where the "Hide Window" activity is used to hide a window with the process name "notepad.exe":

Hide Window:
Display Name: "Hide Notepad Window"
Process Name: "notepad.exe"
Entry Delay: 1

In this example, the activity hides the window associated with the "notepad.exe" process after a delay of 1 second.